package xty.rabbitmq.enums;

import xty.rabbitmq.receive.RabbitMQReceiver;

/**
 * mq消息队列枚举类，添加队列，只需在此添加枚举后再实现 消费者类 即可
 * @author XieTianYi
 */
public enum RabbitMQQueue {

    //bindingName 任意指， exchange 交换机名， routeKey 任意指， receiveClass 消费者实现类
    QUEUE_A("bindingA", "EXCHANGE_A", "spring-boot-routingKey_A", RabbitMQReceiver.class);

    private String bindingName;
    private String exchange;
    private String routeKey;
    private Class receiveClass;

    RabbitMQQueue(String bindingName, String exchange, String routeKey, Class receiveClass) {
        this.bindingName = bindingName;
        this.exchange = exchange;
        this.routeKey = routeKey;
        this.receiveClass = receiveClass;
    }

    public String getBindingName() {
        return bindingName;
    }

    public String getExchange() {
        return exchange;
    }

    public String getRouteKey() {
        return routeKey;
    }

    public Class getReceiveClass() {
        return receiveClass;
    }
}
